From 4d5a404460a70fa985f93a637b792bb5544c54d8 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Tue, 27 Mar 2007 14:34:34 +0100 Subject: [PATCH] Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal on a clean machine. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 7d468cb43e..4b155c3dac 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -152,8 +152,9 @@ def recreate(info, priv): try: vmpath = xstransact.Read(dompath, "vm") if not vmpath: - log.warn('/local/domain/%d/vm is missing. recreate is ' - 'confused, trying our best to recover' % domid) + if not priv: + log.warn('/local/domain/%d/vm is missing. recreate is ' + 'confused, trying our best to recover' % domid) needs_reinitialising = True raise XendError('reinit') -- 2.30.2